Do not enforce atomics support on archs not supporting it.
authorTobias Frost <tobi@debian.org>
Tue, 6 Jan 2026 12:16:13 +0000 (13:16 +0100)
committerTobias Frost <tobi@debian.org>
Tue, 6 Jan 2026 12:16:13 +0000 (13:16 +0100)
Forwarded: no, Debian specific.
Last-Update: 2018-05-26

armel seems to have no atomic support on opencascade, so make it possible to
hint the build system not to enforce it.
Last-Update: 2018-05-26
Gbp-Pq: Name armel-ftbfs.patch

CMakeLists.txt

index f8d62e06b72a77e0e07b168f6b8435bbae2218b1..d57fee251efe0e5141ba6f8eb19c6033b7514a19 100644 (file)
@@ -81,6 +81,11 @@ else ()
 endif()
 set (CMAKE_CXX_STANDARD_REQUIRED ON)
 
+# Make it possible to ignore if there are no atomics support, needed for armel.
+IF(IGNORE_NO_ATOMICS)
+    ADD_DEFINITIONS(-DIGNORE_NO_ATOMICS)
+ENDIF(IGNORE_NO_ATOMICS)
+
 # include cmake file
 macro (OCCT_INCLUDE_CMAKE_FILE BEING_INCLUDED_FILE)
   include (${CMAKE_SOURCE_DIR}/${BEING_INCLUDED_FILE}.cmake)